package cn.zymall.order.controller;

import cn.zymall.order.service.KdniaoQuerySetvice;
import cn.zymall.order.service.impl.KdniaoQueryServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: mall
 * @description: 快递控制器
 * @author: YueNiao
 * @email: 1486617253@qq.com
 * @create: 2020-08-25 21:54
 **/
@RestController
@RequestMapping("/kdniao")
public class KdniaoController {
	@Autowired
	private KdniaoQuerySetvice kdniaoQuerySetvice;

	@GetMapping("/kdQuery")
	public String kdQuery(String code,String no) throws Exception {
		return kdniaoQuerySetvice.getOrderTracesByJson(code, no);
	}

	/**
	 * 单号是否存在识别
	 * @param no
	 * @return
	 * @throws Exception
	 */
	@GetMapping("/kdQueryexist")
	public String kdQueryexist(String no) throws Exception {
		return kdniaoQuerySetvice.kdQueryexist(no);
	}


}
